package com.common.valid.annotation;


import com.common.Constants;
import com.common.valid.DefaultValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = {DefaultValidator.class})
public @interface Default {
    String message() default Constants.DEFAULT_ENUM_MESSAGE;

    String[] values() default {};

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
